<template>
	<view class="scale-view" :class="{scale: isScale}" @tap="handelTap">
		<slot></slot>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				isScale: false
			};
		},
		methods:{
			handelTap(){
				this.isScale = true;
				setTimeout(() => {
					this.isScale = false;
				}, 300)
			}
		}
	}
</script>

<style scoped>
.scale-view{
	display: inline-block;
}
</style>
